<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function Man(){}
        function Women(){}
        let person = {
            eyes:2,
            eat(){
                console.log('我在吃饭');
            }
        }
        Man.prototype = person
        Women.prototype = person
        let jack = new Man()
        let rose = new Women()
        jack.eat()
        rose.eat()
        console.log(jack.eyes,rose.eyes);
    </script>
</body>
</html>